﻿using Kaskelot.SP.Services;
using Microsoft.SharePoint;
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Kaskelot.SP.UI.CONTROLTEMPLATES.Kaskelot.SP.UI
{
    public partial class Toolbox : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (AuthService.IsInRole(AuthService.Permissions.Write))
                ToolboxContainer.Visible = true;
            else
                ToolboxContainer.Visible = false;
        }
    }
}
